<style type="text/css">
    .overlay{
        position:absolute;top:0;left:0;width: 100%;background-color: #000;opacity: 0.2;z-index: 100
    }
    .hide{
        display: none;
    }
    .show{
        display: block;
    }
</style>
<div id="overlay" class="overlay hide"></div>
<div id="user-register">
    <?php
    $this->headTitle('Đăng ký - Ajax');
    $formRegister->setAttribute('onsubmit', 'UserController.userRegister(); return false;');
    $formRegister->setAttribute('class', 'form-horizontal');
    $formRegister->prepare();
    ?>
    <div class="wrap">
        <div class="header">
            <?php echo $this->partial('header'); ?>  	
        </div>
        <div class="main">
            <div class="content">
                <div class="content_top">
                    <div class="heading">
                        <h3>Đăng ký <?php if(isset($noMailConfig)) echo $noMailConfig;?></h3>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="section group">
                    <div class="col span_1_of_2">
                        <div class="contact-form">
                            <?php echo $this->form()->openTag($formRegister); ?>
                            <div class="input-group">
                                <div class="form-label">
                                    <?php echo $this->formLabel($formRegister->get('member_email')); ?>
                                </div>
                                <div class="form-input">
                                    <?php echo $this->formInput($formRegister->get('member_email')); ?>
                                    <?php if ($this->formElementErrors($formRegister->get('member_email'))) { ?>
                                        <div class="form-error">
                                            <?php echo $this->formElementErrors($formRegister->get('member_email')); ?>
                                        </div>
                                    <?php } ?>
                                </div>
                            </div>
                            <div class="input-group">
                                <div class="form-label">
                                    <?php echo $this->formLabel($formRegister->get('member_password')); ?>
                                </div>
                                <div class="form-input">
                                    <?php echo $this->formPassword($formRegister->get('member_password')); ?>
                                    <?php if ($this->formElementErrors($formRegister->get('member_password'))) { ?>
                                        <div class="form-error">
                                            <?php echo $this->formElementErrors($formRegister->get('member_password')); ?>
                                        </div>
                                    <?php } ?>
                                </div>
                            </div>
                            <div class="input-group">
                                <div class="form-label">
                                    <?php echo $this->formLabel($formRegister->get('retype_password')); ?>
                                </div>
                                <div class="form-input">
                                    <?php echo $this->formPassword($formRegister->get('retype_password')); ?>
                                    <?php if ($this->formElementErrors($formRegister->get('retype_password'))) { ?>
                                        <div class="form-error">
                                            <?php echo $this->formElementErrors($formRegister->get('retype_password')); ?>
                                        </div>
                                    <?php } ?>
                                </div>
                            </div>
                            <div class="input-group">
                                <div class="form-label">
                                    <?php echo $this->formLabel($formRegister->get('captcha')); ?>
                                </div>
                                <div class="form-input">
                                    <?php echo $this->formCaptcha($formRegister->get('captcha')); ?>
                                    <?php if ($this->formElementErrors($formRegister->get('captcha'))) { ?>
                                        <div class="form-error">
                                            <?php echo $this->formElementErrors($formRegister->get('captcha')); ?>
                                        </div>
                                    <?php } ?>
                                </div>
                            </div>
                            <div class="input-group">
                                <div class="form-button">
                                    <?php echo $this->formSubmit($formRegister->get('register')); ?>
                                </div>
                            </div>
                            <?php echo $this->form()->closeTag(); ?>
                        </div>
                    </div>
                </div>		
            </div> 
        </div>
    </div>
</div>
